package com.tutorial;

import com.tutorial.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 */
public class AopApplicationContextTest {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");
		UserService userService = context.getBean(UserService.class);
		// UserDao userDao = context.getBean(UserDao.class);
		userService.show1();
		userService.show2();
		// userDao.show();
	}
}
